package com.example.demo.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.demo.model.po.Dept;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface DeptMapper extends BaseMapper<Dept> {

    @Select("select * from dept where dept_id = #{deptId} and dept_name = #{deptName}")
    List<Dept> queryAll(Integer deptId, String deptName);
}
